/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.soc.cs5226.gui.entities;

import java.sql.Timestamp;
import javax.faces.bean.ManagedBean;
import edu.soc.cs5226.gui.entities.util.Constants;

/**
 *
 * @author huijia
 */
@ManagedBean
public class BufferCache implements DBParameter {

    private Timestamp dateTime;
    private long dbBlockGets = 0;
    private long consistentGets = 0;
    private long physicalReads = 0;
    private long cacheHitRatio = 0;
    private String bc_healthStatus;

    public String getActualTime() {
        return Constants.DATEFORMAT.format(dateTime.getTime());
    }

    public Timestamp getdateTime() {
        return dateTime;
    }

    public void setdateTime(Timestamp dateTime) {
        this.dateTime = dateTime;
    }

    public String getBc_healthStatus() {
        return bc_healthStatus;
    }

    public void setBc_healthStatus(String bc_healthStatus) {
        this.bc_healthStatus = Constants.convertStatus(bc_healthStatus);
    }

    public long getCacheHitRatio() {
        return cacheHitRatio;
    }

    public void setCacheHitRatio(long cacheHitRatio) {
        this.cacheHitRatio = cacheHitRatio;
    }

    public long getConsistentGets() {
        return consistentGets;
    }

    public void setConsistentGets(long consistentGets) {
        this.consistentGets = consistentGets;
    }

    public long getDbBlockGets() {
        return dbBlockGets;
    }

    public void setDbBlockGets(long dbBlockGets) {
        this.dbBlockGets = dbBlockGets;
    }

    public long getPhysicalReads() {
        return physicalReads;
    }

    public void setPhysicalReads(long physicalReads) {
        this.physicalReads = physicalReads;
    }
}
